package com.gp.controller;

import com.gp.service.MenuService;
import com.gp.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 来一杯凉咖
 * @create 2022/3/8 17:10
 */
@RestController
@RequestMapping("/system")
public class MenuController {
    @Autowired
    private MenuService menuService;
    @PostMapping("leftMenu")
    public CommonResult leftMenu(){
        return menuService.findMenu();
    }
}
